package com.suray.wcs;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableScheduling
@EnableSwagger2
@MapperScan({
        "com.suray.wcs.service.system.mapper",
        "com.suray.fork.lifter.mysql.data",
        "com.suray.basic.wcs.plc.mapper",
        "com.suray.system.run.data.mysql.device",
        "com.suray.system.run.seer.mysql"})
@ComponentScan({"com.suray"})
@EnableAsync
public class WcsApplication {
    private final static Logger logger = LoggerFactory.getLogger(WcsApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(WcsApplication.class, args);
        logger.info(WcsApplication.class.getSimpleName() + " is success!");
    }
}
